import Layout from "./components/layout/index";

import "antd/dist/antd.css";
import "./global.css";
import { BrowserRouter } from "react-router-dom";
import Router from "./routers/index";
import store, { persistor } from "./store";
import { OmitProps } from "antd/lib/transfer/ListBody";
import { Provider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";

function App() {
  return (
    <Provider store={store}>
      <PersistGate loading={null} persistor={persistor}>
        <BrowserRouter>
          <Router />
        </BrowserRouter>
      </PersistGate>
    </Provider>
  );
}

export default App;
